package com.fastloan.jn.mgt.customer.model;

import com.kawins.base.baseabs.BaseModel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * @author admins
 */
@Table(name = "JN_CUSTOMER_TRANSITION")
public class JnCustomerTransition extends BaseModel<String> {
    /**
     * 客户id
     */
    @Id
    @Column(name = "CUSTOMER_ID")
    private String customerId;

    /**
     * 移交前的客户id
     */
    @Column(name = "OLD_CUSTOMER_MANAGER_ID")
    private String oldCustomerManagerId;

    /**
     * 移交后的客户id
     */
    @Column(name = "NEW_CUSTOMER_MANAGER_ID")
    private String newCustomerManagerId;

    /**
     * 审批人id
     */
    @Column(name = "APPROVE_ID")
    private String approveId;

    /**
     * 操作时间
     */
    @Column(name = "OPERATION_TIME")
    private Date operationTime;

    /**
     * 0 未申请, 1已申请
     */
    @Column(name = "TRANSITION_STATUS")
    private Integer transitionStatus;

    public Date getOperationTime() {
        return operationTime;
    }

    public void setOperationTime(Date operationTime) {
        this.operationTime = operationTime;
    }

    public String getApproveId() {
        return approveId;
    }

    public void setApproveId(String approveId) {
        this.approveId = approveId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    /**
     * 获取移交前的客户id
     *
     * @return OLD_CUSTOMER_ID - 移交前的客户id
     */
    public String getOldCustomerManagerId() {
        return oldCustomerManagerId;
    }

    /**
     * 设置移交前的客户id
     *
     * @param oldCustomerManagerId 移交前的客户id
     */
    public void setOldCustomerManagerId(String oldCustomerManagerId) {
        this.oldCustomerManagerId = oldCustomerManagerId;
    }

    /**
     * 获取移交后的客户id
     *
     * @return NEW_CUSTOMER_ID - 移交后的客户id
     */
    public String getNewCustomerManagerId() {
        return newCustomerManagerId;
    }

    /**
     * 设置移交后的客户id
     *
     * @param newCustomerManagerId 移交后的客户id
     */
    public void setNewCustomerManagerId(String newCustomerManagerId) {
        this.newCustomerManagerId = newCustomerManagerId;
    }

    /**
     * 获取0 未申请, 1已申请
     *
     * @return TRANSITION_STATUS - 0 未申请, 1已申请
     */
    public Integer getTransitionStatus() {
        return transitionStatus;
    }

    /**
     * 设置0 未申请, 1已申请
     *
     * @param transitionStatus 0 未申请, 1已申请
     */
    public void setTransitionStatus(Integer transitionStatus) {
        this.transitionStatus = transitionStatus;
    }
}